package cn.mln521.aspectJ.demo2;

/**
 * 目标类
 */
public class CustomerDaoImpl implements CustomerDao {
    @Override
    public void save() {
        System.out.println("增加");
    }

    @Override
    public String update() {
        System.out.println("更新");
        return "hello";
    }

    @Override
    public void delete() throws Exception {
        System.out.println("删除");
//        int i = 1/0;
    }

    @Override
    public void findOne() {
        System.out.println("查询一个");
//        int i = 1/0;
    }

    @Override
    public void findAll() {
        System.out.println("查询所有");
    }
}
